package com.company.cloud.article.modules.mgr.controller.req;

import java.util.List;
import java.util.Set;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.common.constant.BaseConstant.YNEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ArticleRelAddListParam extends BaseParam {


    @ApiModelProperty(value = "公司编号不能为空", required = true)
    @NotNull(message = "公司编号不能为空")
    private Set<String> companyNos;

    @ApiModelProperty(value = "文章编号不能为空", required = true)
    @NotEmpty(message = "文章编号不能为空")
    private String articleNo;

    @ApiModelProperty(value = "排序")
    private Integer orders = 0;

    @ApiModelProperty(value = "标签")
    private List<Integer> tags;

    @ApiModelProperty(value = "备注信息")
    private String remarks;

    @ApiModelProperty(value = "分类ID")
    private List<Integer> categoryIds;

    @ApiModelProperty(value = "上下架状态", required = true)
    @NotEmpty(message = "上下架状态不能为空")
    private String state = YNEnum.NO.getCode();

    @ApiModelProperty(value = "是否置顶", required = true)
    @NotEmpty(message = "是否置顶不能为空")
    private String isTop = YNEnum.NO.getCode();

    @ApiModelProperty(value = "显示渠道")
    private Set<String> showChannel;


}
